<%@page import="henu.javaweb.dao.DaoFactory"%>
<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8" import="henu.javaweb.bean.Student"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<link rel="stylesheet" href="../../css/bootstrap.min.css">
<link rel="stylesheet" href="../../css/my.css">
<script type="text/javascript" src="../../js/jquery-3.2.1.min.js"></script>
<script type="text/javascript" src="../../js/bootstrap.min.js"></script>
<title>学生页头</title>
<style>
</style>
</head>
<body>
<%
String sno=(String)session.getAttribute("sno");

Student stu=DaoFactory.getStudentDaoInstance().findBySno(sno);

%>
<div id="top-pic"></div>
<div class="navbar navbar-inverse navbar-static-top">
	<div class="container">
		<div class="navbar-header">
			<a class="navbar-brand">学生信息管理系统</a>
		</div>
		<div>
			<ul class="nav navbar-nav">
				<li ><a href="main.jsp"><span class="glyphicon glyphicon-home"></span> 首页</a></li>
				<li class="dropdown">
					<a href="#" class="dropdown-toggle" data-toggle="dropdown">
						<span class="glyphicon glyphicon-time"></span>
						个人信息
						<b class="caret"></b>
					</a>
					<ul class="dropdown-menu">
							<li>
								<a href="showMyMessPage.jsp" tabindex="-1">
									<span class="glyphicon glyphicon-align-justify"></span>
									查看个人信息
								</a>
							</li>
							<li>
								<a href="configMessPage.jsp" tabindex="-1">
									<span class="glyphicon glyphicon-list"></span>
								 	修改个人信息
								</a>
							</li>	
					</ul>
				 </li>
				 <li ><a href="messNoticePage.jsp"><span class="glyphicon glyphicon-home"></span> 查看通知</a></li>
			</ul>
		</div>
		<div>
			<ul class="nav navbar-nav pull-right">
				<li><a class="navbar-brand" id="wel-name"><small>欢迎，<%=stu.getS_name()%></small></a>
				<li>
					<a href="#" data-toggle="modal" data-target="#changepass">
						<span class="glyphicon glyphicon-pencil"></span>
						修改口令
					</a>
				</li>
				<li><a href="../MainLoginPage.jsp"><span class="glyphicon glyphicon-log-out"></span> 退出</a>
			</ul>
		</div>
	</div>
</div>
	<!-- 修改口令使用的模态框 -->
 <div class="modal fade bs-example-modal-sm modal-dis" id="changepass" 
 	tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
	<div class="modal-dialog modal-sm" >
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal" aria-hidden="true">
				&times;
				</button>
				<h4 class="modal-title" id="myModalLabel">
				<strong>修改口令</strong>
				</h4>
			</div>
			<div class="modal-body ">
				<form role="form" action="../../UpdateStudentPasswordServlet" method="post" class="login-form">
					<div class="form-group">
						<input type="password" name="original_pass" style="width:100%" placeholder="原口令" class="form-control"/>
					</div>
					<div class="form-group">
						<input type="password" name="new_pass" style="width:100%" placeholder="新口令" class="form-control"/>
					</div>
					<div class="form-group">
						<input	type="password" name="confirm_pass" style="width:100%" placeholder="确认新口令" class="form-control"/>
					</div>
					<div class="form-group">
						<input  type="submit" class="btn btn-primary form-control" style="width:100%" value="修改" />
					</div>
				</form>
			</div>
		</div>
	</div>
</div>
<div class="container">
	<h1>
		<img src="../../img/student.jpg" class="img-circle"/>学生信息管理
	</h1>
</div>

</body>
</html>